import request from '@/utils/request'

/** 查询订单列表 */
export function listOrder(query) {
  return request({
    url: '/order/list',
    method: 'get',
    params: query
  })
}

/** 查询订单详细 */ 
export function getOrder(orderId) {
  return request({
    url: '/order/' + orderId,
    method: 'get'
  })
}

/** 更新订单状态 */
export function updateOrderState(orderIds, model) {
  return request({
    url: '/order/updateOrderState/' + orderIds,
    method: 'put',
    params: {model: model}
  })
}

/** 删除订单 */
export function deleteOrder(orderIds) {
  return request({
    url: '/order/' + orderIds,
    method: 'delete'
  })
}





